const {override, fixBabelImports, addLessLoader, addWebpackAlias} = require('customize-cra');
const path = require('path');
module.exports = override(
    fixBabelImports('import', {
        libraryName: 'antd',
        libraryDirectory: 'es',
        style: true,
    }),
    addLessLoader({
      javascriptEnabled: true,
      modifyVars: {
      }
    }),
    addWebpackAlias({
      ["pages"]: path.resolve(__dirname, "src/pages"),
      ["shared"]: path.resolve(__dirname, "src/shared"),
      ["src"]: path.resolve(__dirname, "src")
    })
);
